//
//  SWTask.h
//  YiyaPuzzleDemo
//
//  Created by linhan on 16/10/8.
//  Copyright © 2016年 test. All rights reserved.
//

#import <Mantle.h>
#import "SWBook.h"

@interface SWDownloadTask : MTLModel
@property(nonatomic, strong) NSString *localPath;
@property(nonatomic, strong) NSString *relativePath;
@property(nonatomic, strong) NSString *remoteURL;
@property(nonatomic, assign) BOOL finished;

@end

@interface SWUploadTask : MTLModel
@property(nonatomic, assign) BOOL finished;
@property(nonatomic, assign) BOOL origin;   //是否原图
@property(nonatomic, strong) NSString *bookID;
@property(nonatomic, strong) NSString *pageID;
@property(nonatomic, strong) NSString *localPath;
@property(nonatomic, strong) NSString *relativePath;
@end

//页面合成
@interface SWGenerationTask : MTLModel
@property(nonatomic, strong) SWPage *page;
@property(nonatomic, strong) NSString *previewRelativePath;
@property(nonatomic, strong) NSString *previewLocalPath;
@property(nonatomic, assign) BOOL uploadPreviewRightNow;           //生成完即可上传(页面合成图小图)
@end

